
<div class="Breadcrumb">
    <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path . '/news_class'); ?>">内容信息分类</a></span>&nbsp;>&nbsp;<span class="orange">列表</span> </div>               <div class="Breadcrumb-div">
        <ul>
            <li class="Breadcrumb-tj"><a href="<?php echo base_url($this->_site_path . '/news_class/add'); ?>" >添加</a></li>
            <li class="Breadcrumb-lb"><a href="<?php echo base_url($this->_site_path . '/news_class'); ?>" >列表</a></li>
        </ul>
    </div>
</div>

<?php $this->load->view_part($this->_site_path . '/news_class/search', $drowpdown) ?>

<form method="post" action="<?php echo base_url($this->_site_path . '/news_class/delete_all'); ?>">

    <table class="table table-striped table-condensed table-bordered">
        <thead>
            <tr class="table-thbg">
                <th>选择</th>
                <th>类型名称</th>
                <th>父级分类</th>
                <th>备注</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($news_class_data as $single) { ?>
                <tr>
                    <td>
                        <input name="ids[]" value="<?php echo $single['id']; ?>" type="checkbox" />
                    </td>
                    <td><?php echo $single['sortname']; ?></td>
                    <td><?php echo empty($single['parentid']) ? "顶级分类" : $this->news_class_model->get_value_by_pk($single['parentid'], 'sortname'); ?></td>
                    <td><?php echo $single['comment']; ?></td>
                    <td>
                        <a href="<?php echo base_url("{$this->_site_path}/news_class/view/{$single['id']}"); ?>">查看</a>
                        <a href="<?php echo base_url("{$this->_site_path}/news_class/edit/{$single['id']}"); ?>">修改</a>
                        <a href="<?php echo base_url("{$this->_site_path}/news_class/delete/{$single['id']}"); ?>" onclick="return confirmDelete()">删除</a>

                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
    <div class="li-ttle floa-Left">
        <ul>
            <li><label><input name="checkAll" type="checkbox" onclick="checkAllfuck()"/>&nbsp;全选</label></li>
            <li><label><input name="checkInverse" type="checkbox" onclick="checkInversefuck()"/>&nbsp;反选</label></li>
            <li><button type="submit"  class=" btn" onclick="return confirmDelete()"><span  class="btn-Bulkdelete">批量删除</span></button></li>
        </ul>
    </div> 
    <?php echo $pagination; ?>
</form>
